package ly.jobdu;

import java.util.Scanner;

public class Q1058InvertedSequence {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()) {
			String str = scanner.nextLine();
			invertedSequence(str);
		}
	}
	
	public static void invertedSequence(String str) {
		char[] chars = str.toCharArray();
		
		for (int i = 0; i < chars.length / 2; i++) {
			swap(chars, i, chars.length - i - 1);
		}
		
		for (int i = 0; i < chars.length; i++) {
			System.out.print(chars[i]);
		}
		System.out.println();
	}
	
	public static void swap(char[] chars, int a, int b){
		char temp = chars[a];
		chars[a] = chars[b];
		chars[b] = temp;
	}
}
